package com.cloud.logger.zchain.zchainserver.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * User: zhengyt
 * Date: 2017/4/20
 * Time: 9:36
 */
@Data
@Document(collection = "logger_project_every_day")
public class AngelaLoggerProjectEveryDay {

    @org.springframework.data.annotation.Id
    private String id;

    @JsonProperty("create_time")
    @JSONField(name = "create_time")
    @ApiModelProperty(name = "create_time", notes = "创建时间", example = "2017-11-09 09:01:01")
    private Date createTime;

    @JsonProperty("update_time")
    @JSONField(name = "update_time")
    @ApiModelProperty(name = "update_time", notes = "更新时间", example = "2017-11-09 09:01:01")
    private Date updateTime;

    @JsonProperty("error_logger")
    @JSONField(name = "error_logger")
    @ApiModelProperty(name = "error_logger", notes = "错误日志数", example = "100")
    private int errorLogger;

    @JsonProperty("logger")
    @JSONField(name = "logger")
    @ApiModelProperty(name = "logger", notes = "日志数", example = "100")
    private int logger;

    //所属景区
    @JsonProperty("scenic")
    @JSONField(name = "scenic")
    @ApiModelProperty(name = "scenic", notes = "景区名称", example = "西溪湿地")
    private String scenic;

    //所属项目
    @JsonProperty("project")
    @JSONField(name = "project")
    @ApiModelProperty(name = "project", notes = "项目名称", example = "西溪湿地管控")
    private String project;

    //警报等级（1：正常，2：警报，3：错误，4：严重错误）
    @JsonProperty("alarm_level")
    @JSONField(name = "alarm_level")
    @ApiModelProperty(name = "alarm_level", notes = "警报等级（1：正常，2：警报，3：错误，4：严重错误", example = "1")
    private Integer alarmLevel;

    @JsonProperty("bug_create_time")
    @JSONField(name = "bug_create_time")
    @ApiModelProperty(name = "bug_create_time", notes = "bug创建时间", example = "2017-11-09 09:01:01")
    private Date bugCreateTime;

    @ApiModelProperty(hidden = true)
    private Date createdDate;
    @ApiModelProperty(hidden = true)
    private long version;
    @ApiModelProperty(hidden = true)
    private long createBy;
}
